import request from "@/utils/request"

const basePath = '/goods/category'

export const GetListData = parentId => {
	return request({
		url: `${basePath}/list/${parentId}`,
		method: 'get',
	})
}

export const AddData = data => {
	return request({
		url: `${basePath}/add`,
		method: 'post',
		data,
	})
}

export const ModifyData = data => {
	return request({
		url: `${basePath}/modify`,
		method: 'post',
		data,
	})
}

export const DeleteData = data => {
	return request({
		url: `${basePath}/delete`,
		method: 'post',
		data,
	})
}
